<html>
<head>
</head>
<script language="javascript">
function buka()
{
	w_left = (screen.width-500)/2;
	w_top  = (screen.height-420)/2;

	window.moveTo(w_left,w_top);
}

</script>
<script type="text/javascript">
function add_file_field(){
var container=document.getElementById('file_container');
var file_field=document.createElement('input');
file_field.name='images[]';
file_field.type='file';
container.appendChild(file_field);
var br_field=document.createElement('br');
container.appendChild(br_field);
}

</script>

<style>
body
{
	padding:2%;
}
</style>
<?php
if(isset($comment_id)) {
	$a = $comment_id;
	} else {
		$a = $idcmnt;
		} 

//
if(isset($ticked_id)) {
	$b = $ticked_id;
	} else {
		$b =$ticked;
		}
//
if(isset($comments)) {
	$c = $comments;
	} else {
		$c ="";
		}
//
if(isset($datetime)) {
	$d = $datetime;
	} else {
		$d = date("m/d/Y H:i");
		}
?>
<body onLoad="buka()">
<h2>UPDATE COMENTS</h2>
<form action="<?php echo $form_action;?>" method="post" enctype="multipart/form-data">
<input type="hidden" name="images1" value="<?php if(isset($images1)) { echo $images1;}?>">
<input type="hidden" name="images2" value="<?php if(isset($images2)) { echo $images2;}?>">
<input type="hidden" name="images3" value="<?php if(isset($images3)) { echo $images3;}?>">
<input type="hidden" name="images4" value="<?php if(isset($images4)) { echo $images4;}?>">
<input type="hidden" name="images5" value="<?php if(isset($images5)) { echo $images5;}?>">
<table>
	<tr>
    	<td>Coments ID</td><td></td><td>
       
        <input type="text" name="comment_id"  value="<?php echo $a;?>" disabled />
        <input type="hidden" name="comment_id"  value="<?php echo $a;?>" />
      
        </td><td></td>
    </tr>
    <tr>
    	<td>Ticket ID</td><td></td><td>
        
        <input type="text" name="ticked_id" value="<?php echo $b;?>" disabled/>
        <input type="hidden" name="ticked_id" value="<?php echo $b;?>"  />
        
        </td><td></td>
        
    </tr>
    <tr>
    	<td>Comments</td><td></td><td></td><td></td>
    </tr>
    <tr>
    	<td></td><td></td><td><textarea name="comments" cols="25" rows="5"><?php echo $c;?></textarea>
        </td><td></td>
    </tr>
    <tr>
    	<td>Datetime</td><td></td><td><input type="text" name="datetime" disabled="disabled" value="<?php echo $d;?>"/><input type="hidden" name="datetime" value="<?php echo $d;?>"/></td><td></td>
    </tr>
    <tr>
    	<td></td><td></td><td><div id="file_container">
    <input name="images[]" type="file"  /><br />
    
  </div><a href="javascript:void(0);" onClick="add_file_field();">Add another</a></td><td></td>
    </tr>
    <tr>
    	<td></td><td></td><td>&nbsp;</td><td></td>
    </tr>
    <tr>
    	<td></td><td></td><td><input type="submit" name="save" value="Save"/>&nbsp;&nbsp;<input type="reset" value="Reset" />&nbsp;&nbsp;<input type="button" value="Close" onClick="window.close()" /></td><td></td>
    </tr>
</table>
</form>
</body>
</html>